<!doctype html>
<html>
{include file="head.html"}

<body>
 
<div class="header" >
    <a class="left-btn pointer" href="{$appshop}?m=tejia_order"><span class="iconfont icon-back"></span></a> 
    <div class="title">特价订单详情</div>
     
  </div>
    
  <div class="orderhd">
  		订单编号：{$data.orderno}
        订单状态：<span style="color:red">{$order_status_list[$data.status]}</span>
  </div>
  
   <div class="plist np">
    {foreach item=p from=$order_product}
    <div class="item">
      <div class="g-sd1"><img src="{$p.imgurl|images_site}.100x100.jpg" width="40" /></div>
      <div class="g-mn1">
      	<div class="g-mn1c">
     		 <div class="tit">{$p.title}</div>
        
        <div class="row-price">￥{$p.order_price}&nbsp;&nbsp;&nbsp; <span class="amount">x {if $p.amount_send}{$p.amount_send}{else}{$p.amount}{/if}</span> </div>
        
        </div>
       </div>
    </div>
    {/foreach}
   </div>
  <div class="kdtotalbox">
  		<div class="l">共{$data.total_num}件</div>
        <div class="r">合计：￥{$data.money}元</div>
  </div>
  <div class="kdcomment">备注：<span>{$data.comment}</span></div>
  
  
  <table class="table-addr">
  	<tr>
    	<td class="t1">姓名 </td>
        <td>{$addr.truename}</td>
    </tr>
    
    <tr>
    	<td class="t1">电话 </td>
        <td><a href="tel:{$addr.telephone}">{$addr.telephone}</a></td>
    </tr>
    
    <tr>
    	<td class="t1">地址 </td>
        <td>{$addr.p_c_t}  宿舍：{$addr.sushe}  {$addr.address}</td>
    </tr>
    
  </table>
  
  <table class="table-addr">
  	 
    <tr>
    	<td class="t2">下单时间 </td>
        <td>{$data.dateline|date:Y-m-d H:i:s}</td>
    </tr>
    
    <tr>
    	<td class="t2">付款方式 </td>
        <td>{$order_ispay[$data.ispay]} {if $data.paytype eq 'wxpay'}微信支付{elseif $data.paytype eq 'alipay'}支付宝{/if}   {if $data.unpay}货到付款{/if}</td>
    </tr>
 
    
  </table>
  <div class="clearfix"></div>
   
  
  
   
  {if $data.status eq 0}
  <form method="post" action="{$appshop}?m=tejia_order&a=confirm" class="form form-inline ">
    <input type="hidden" name="order_id" value="{$data.order_id}" />
    <table class="table table-bordered">
      <tr>
        <td width="40"> 订单<br />
          确认 </td>
        <td><div class="input-row">
            <label>操作日志</label>
            <input type="text" name="content" value="{$admin.username}确认订单了" class="w98" />
          </div>
          <button type="submit" class="btn btn-row btn-success">确认下单</button></td>
      </tr>
    </table>
  </form>
  {/if}
  {if $data.status eq 2}
  <form method="post" action="{$appshop}?m=tejia_order&a=send" class="form form-inline ">
    <input type="hidden" name="order_id" value="{$data.order_id}" />
    <table class="table table-bordered">
      <tr>
        <td  width="40"> 修改<br />
          物流 </td>
        <td><div class="input-row">
            <label>联系电话</label>
            <input type="text" name="kdy_telephone" value="{if $data.kdy_telephone}{$data.kdy_telephone}{else}{$shop.telephone}{/if}">
            <br>
          </div>
          <div class="input-row">
            <label>物流信息</label>
            <input type="text" name="shipping_info" value="{$data.shipping_info}" class="w98" />
          </div>
          <div class="input-row">
            <label>操作日志</label>
            <input type="text" name="content" value="{$admin.username}确认发货了" class="w98" />
          </div>
          <button type="submit" class="btn btn-row btn-success">确认修改</button></td>
      </tr>
    </table>
  </form>
  {/if}
 
  {if $data.status eq 1}
  <form method="post" action="{$appshop}?m=tejia_order&a=send" class="form form-inline ">
    <input type="hidden" name="order_id" value="{$data.order_id}" />
    <table class="table table-bordered">
      <tr>
        <td  width="40"> 确认<br />
          发货 </td>
        <td><div class="input-row">
            <label>联系电话</label>
            <input type="text" name="kdy_telephone" value="{if $data.kdy_telephone}{$data.kdy_telephone}{else}{$shop.telephone}{/if}">
            <br>
          </div>
          <div class="input-row">
            <label>物流信息</label>
            <input type="text" name="shipping_info" value="{$data.shipping_info}" class="w98" />
          </div>
          <div class="input-row">
            <label>操作日志</label>
            <input type="text" name="content" value="{$admin.username}确认发货了" class="w98" />
          </div>
          <button type="submit" class="btn btn-row btn-success">确认发货</button></td>
      </tr>
    </table>
  </form>
  {/if}
 
  {if $data.status eq 2}
  <form method="post" action="{$appshop}?m=tejia_order&a=finish" class="form form-inline " onsubmit="return confirm('订单确认完成后订单不能再编辑，确认完成吗？');">
    <input type="hidden" name="order_id" value="{$data.order_id}" />
    <table class="table table-bordered">
      <tr>
        <td width="40"> 订单<br />
          完成 </td>
        <td><div class="input-row">
            <label>操作日志</label>
            <input type="text" name="content" value="{$admin.username}确认完成了" class="w98" />
          </div>
          <button type="submit" class="btn btn-row btn-success">确认完成</button></td>
      </tr>
    </table>
  </form>
  {/if}
  {if $data.status eq 0}
  <form method="post" action="{$appshop}?m=tejia_order&a=cancel" class="form form-inline " onsubmit="return confirm('订单取消后不可恢复，并且会将订单金额返还给客户，确认取消吗？');">
    <input type="hidden" name="order_id" value="{$data.order_id}" />
    <table class="table table-bordered">
      <tr>
        <td  width="40"> 取消<br />
          订单 </td>
        <td><div class="input-row">
            <label>原因</label>
            <input type="text" name="message" value="" class="w98" />
          </div>
          <div class="input-row">
            <label>操作日志</label>
            <input type="text" name="content" value="{$admin.username}取消订单了" class="w98" />
          </div>
          <button type="submit" class="btn btn-row btn-success">订单取消</button></td>
      </tr>
    </table>
  </form>
  {/if}
  
  </div>
</div>
{assign var="botnav" value="tejia_order"}
{include file="footer.html"}
</body>
</html>
